package im.starchat.chat.rest.model;

import android.os.Parcel;
import android.os.Parcelable;

public class MemberInfo implements Parcelable {
    private String userPhone;
    private String userName;
    private String headImagePath = null;
    public String identifier = "";
//    public String  name;
    private String userDescribe;
//    public boolean isSpeaking = false;
//    public boolean isVideoIn = false;
//    public boolean isShareSrc = false;
//    public boolean isShareMovie = false;
//    public boolean hasGetInfo = false;

    public MemberInfo(){

    }

    public MemberInfo(String phone) {
        userPhone = phone;
    }

    public MemberInfo(String phone, String name, String path) {
        userPhone = phone;
        userName = name;
        headImagePath = path;
    }

    public MemberInfo(String phone, String name, String path, String describe) {
        userPhone = phone;
        userName = name;
        headImagePath = path;
        userDescribe = describe;
    }

    public void setUserPhone(String phone) {
        userPhone = phone;
    }
    public String getUserPhone() {
        return userPhone;
    }

    public void setUserName(String name) {
        userName = name;
    }
    public String getUserName() {
        return userName;
    }

    public void setHeadImagePath(String path) {
        headImagePath = path;
    }
    public String getHeadImagePath() {
        return headImagePath;
    }


    public String getUserDescribe() {
        return userDescribe;
    }

    public void setUserDescribe(String userDescribe) {
        this.userDescribe = userDescribe;
    }

    @Override
    public String toString() {
        return "MemberInfo identifier = " + identifier;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userPhone);
        dest.writeString(this.userName);
        dest.writeString(this.headImagePath);
        dest.writeString(this.identifier);
//        dest.writeString(this.name);
        dest.writeString(this.userDescribe);
    }

    protected MemberInfo(Parcel in) {
        this.userPhone = in.readString();
        this.userName = in.readString();
        this.headImagePath = in.readString();
        this.identifier = in.readString();
//        this.name = in.readString();
        this.userDescribe = in.readString();
    }

    public static final Parcelable.Creator<MemberInfo> CREATOR = new Parcelable.Creator<MemberInfo>() {
        public MemberInfo createFromParcel(Parcel source) {
            return new MemberInfo(source);
        }

        public MemberInfo[] newArray(int size) {
            return new MemberInfo[size];
        }
    };
}